<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/3
 * Time: 9:45
 */

namespace app\admin\validate;

use think\Validate;

class Cases extends Validate
{
    protected $rule = [
        'case_title'  =>  'require',
        'url'  =>  'require',
        'original_img'  =>  'require',
        'cat_id'  =>  'require',
    ];

    protected $message  =   [
        'case_title.require' => '成功案例标题必填!',
        'url.require' => '成功案例url必填!',
        'original_img.require' => '图片必须上传!',
        'cat_id.require' => '类型必选!',
    ];
}